/*
 * @Author: Siyongkun
 * @Date: 2021-07-24 12:17:53
 * @Last Modified by:   Siyongkun
 * @Last Modified time: 2021-07-24 12:17:53
 */
import instance from '../utils';
//获取验证码
export const _getcode = function () {
  const url = '/api/api/code';
  return instance.get(url);
};
//登录
export const _login = function (username: string, password: string, code: any) {
  const url = '/api/api/login';
  return instance.post(url, {
    username: username,
    password: password,
    code: code,
  });
};
//获取列表
export const _list = function () {
  const url =
    'https://m.ziroom.com/wap/index/list?city_code=110000&clng=116.29612&clat=40.02938';
  return instance.get(url);
};
//获取city列表哦
export const _getcityList = function () {
  const url = '/api/getcityList';
  return instance.get(url);
};
